<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文件管理器</title>
    <link href="/after/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/after/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
    <link href="/after/css/animate.min.css" rel="stylesheet">
    <link href="/after/css/style.min.css?v=3.0.0" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="file-manager">
                        <h5>显示：</h5>
                        <a href="javascript:;" onclick="showFile('all')" class="file-control active">所有</a>
                        <a href="javascript:;" onclick="showFile('txt')" class="file-control">文档</a>
                        <a href="javascript:;" onclick="showFile('png')" class="file-control">视频</a>
                        <a href="javascript:;" onclick="showFile('jpg')" class="file-control">图片</a>
                        <div class="hr-line-dashed"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-9 animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">
                    <#list files as file>
                        <div class="file-box">
                            <div class="file">
                                <a href="javascript:;">
                                    <span class="corner"></span>

                                    <#if file.name?index_of(".txt")!=-1>
                                            <div class="icon" name="txt">
                                                <i class="fa fa-file"></i>
                                            </div>
                                            <div class="file-name" name="txt">
                                                ${file.name}
                                                <br/>
                                                <small>上传时间：${file.time?datetime}</small>
                                            </div>
                                        <#elseif file.name?index_of(".jpg")!=-1>
                                            <div class="image" name="jpg">
                                                <img alt="image" class="img-responsive" src="/uploads/${file.name}">
                                            </div>
                                            <div class="file-name" name="jpg">
                                                ${file.name}
                                                <br/>
                                                <small>上传时间：${file.time?datetime}</small>
                                            </div>
                                        <#elseif file.name?index_of(".png")!=-1>
                                            <div class="icon" name="png">
                                                <i class="img-responsive fa fa-film"></i>
                                            </div>
                                            <div class="file-name" name="png">
                                                ${file.name}
                                                <br/>
                                                <small>上传时间：${file.time?datetime}</small>
                                            </div>
                                    </#if>
                                </a>
                            </div>
                        </div>
                    </#list>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="/after/js/jquery-2.1.1.min.js"></script>
<script src="/after/js/bootstrap.min.js?v=3.4.0"></script>



<!-- 自定义js -->
<script src="/after/js/content.min.js?v=1.0.0"></script>


<script>
    $(document).ready(function () {
        $('.file-box').each(function () {
            animationHover(this, 'pulse');
        });
    });
</script>
</body>
<script>
    function showFile(obj){
        if(obj!="all"){
            $("div[name="+obj+"]").css("display","none");
        }else{
            $("div").css("display","block");
        }

    }
</script>
</html>